package cn.asterly.cicada.mapper;

import cn.asterly.cicada.model.Advert;
import cn.asterly.cicada.model.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdvertMapper {
    int insert(Advert record);

    int insertSelective(Advert record);

    int deleteByPrimaryKey(String id);

    Advert selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Advert record);

    int updateByPrimaryKey(Advert record);

    List<Advert> selByPaging(@Param("curentPage") int curentPage, @Param("pageSize") int pageSize);

    List<Advert> selByAll();
}